<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test</title>
</head>
<body>
    <h1 style="background-color: antiquewhite;color: black;">登录</h1>
    <form action="/index/" method="post">
        <input type="text" name="user_id" />
        <input type="password" name="password" />
        <input type="submit" value="提交" />
    </form>

    <hr />

    <h1 style="background-color: antiquewhite;color: black;">展示数据</h1>
    <table border="1">
        <thead>
            <th>用户编号</th>
            <th>用户名</th>
            <th>密码</th>
        </thead>
        <tbody>
            {% for line in data %}
                <tr>
                    <td>{{ line.user_id }}</td>
                    <td>{{ line.user_name }}</td>
                    <td>{{ line.password }}</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
</body>
</html>